#ifndef DATASOURCEDEVICE_H
#define DATASOURCEDEVICE_H

#include <QWidget>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
class DataSourceDevice : public QWidget
{
    Q_OBJECT
public:
    explicit DataSourceDevice(QWidget *parent=nullptr,QByteArray* data=nullptr);
    void GetDataFromSerialport(int num);
private:
    QSerialPort* _serialport;
    QByteArray* _data;

signals:

};

#endif // DATASOURCEDEVICE_H
